﻿$url=$args[0]

Write-Host 'Loading SharePoint'
Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

Write-Host 'Going to enable Feature: base' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc101" -confirm:$false -url $url

Write-Host 'Going to enable Feature: jobs' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc102" -confirm:$false -url $url

Write-Host 'Going to enable Feature: notifications' 
Enable-spfeature -identity "aaaaaaaa-1111-5555-7777-ccccccccc103" -confirm:$false -url $url

Write-Host 'Unloading SharePoint'
Remove-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

.\Restart.Admin.ps1
